home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3polygon.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.1 KB  |  85 lines

  1.  
  2. // JavaScript wrapper for r3polygon.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_POLYGON_H = 1;
  7. include("oops/r3vector.js")
  8. include("real/objects/r3prim.js")
  9.  
  10.  
  11. var R3CLID_POLYGON = 1648;
  12.  
  13.  
  14.  
  15.  
  16. // Description: Set point in object space
  17. // Returns: Boolean, true if succeeded
  18. // p1: Integer, index
  19. // p3: r3Vect, point    
  20.  
  21. R3POLYGONM_SETPOINTLOCAL = 1648001;
  22.  
  23. function mR3POLYGONM_SETPOINTLOCAL(p1, p3) {
  24.   return   DoA2(this.r3obj, 1648001, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
  25. }
  26.  
  27. // Description: Get point in object space
  28. // Returns: Boolean, true if succeeded
  29. // p1: Integer, index
  30. // p3: r3Vect, point    
  31.  
  32. R3POLYGONM_GETPOINTLOCAL = 1648002;
  33.  
  34. function mR3POLYGONM_GETPOINTLOCAL(p1, p3) {
  35.   return   DoA2(this.r3obj, 1648002, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
  36. }
  37.  
  38.  
  39.  
  40.  
  41. R3POLYGONA_Points = 1648500;
  42. function SetR3POLYGONA_Points(value) {
  43.   R3Set(this.r3obj, R3POLYGONA_Points, value, R3TID_VECTOR, R3TNF_ARRAY); 
  44. }
  45.  
  46. function GetR3POLYGONA_Points() {
  47.   return R3Get(this.r3obj, R3POLYGONA_Points, R3TID_VECTOR, R3TNF_ARRAY); 
  48. }
  49.  
  50. R3POLYGONA_Count = 1648501;
  51. function SetR3POLYGONA_Count(value) {
  52.   R3Set(this.r3obj, R3POLYGONA_Count, value, R3TID_INTEGER, 0); 
  53. }
  54.  
  55. function GetR3POLYGONA_Count() {
  56.   return R3Get(this.r3obj, R3POLYGONA_Count, R3TID_INTEGER, 0); 
  57. }
  58.  
  59. var R3POLYGONA_HasPointwiseColors = 1648503; // Boolean
  60. R3POLYGONA_ExtraCount = 1648504;
  61. function SetR3POLYGONA_ExtraCount(value) {
  62.   R3Set(this.r3obj, R3POLYGONA_ExtraCount, value, R3TID_INTEGER, 0); 
  63. }
  64.  
  65.  
  66.  
  67. function r3Polygon () { 
  68.    this.base = r3God;
  69.    if(arguments.length) {
  70.       this.base(R3CLID_POLYGON, arguments);
  71.    }
  72.    // Methods
  73.    this.SETPOINTLOCAL=mR3POLYGONM_SETPOINTLOCAL;
  74.    this.GETPOINTLOCAL=mR3POLYGONM_GETPOINTLOCAL;
  75.  
  76.    // Attributes
  77.    this.GetPoints=GetR3POLYGONA_Points;
  78.    this.SetPoints=SetR3POLYGONA_Points;
  79.    this.GetCount=GetR3POLYGONA_Count;
  80.    this.SetCount=SetR3POLYGONA_Count;
  81.    this.SetExtraCount=SetR3POLYGONA_ExtraCount;
  82. }
  83.  
  84. r3Polygon.prototype=new r3Primitive;
  85. // r3polygon.h_H